package com.ys.entity.administration;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="ADM_UseSignetApply", catalog="Id")
public class AdmUseSignetApply extends BaseEntity<AdmUseSignetApply> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="Purpose", nameJava="purpose", typeDataBase="tinyint")
	private Integer purpose;
	@YsField(nameDataBase="UseTime", nameJava="useTime", typeDataBase="datetime")
	private Date useTime;
	@YsField(nameDataBase="BackTime", nameJava="backTime", typeDataBase="datetime")
	private Date backTime;
	@YsField(nameDataBase="SignetCode", nameJava="signetCode", typeDataBase="varchar")
	private String signetCode;
	@YsField(nameDataBase="SignetName", nameJava="signetName", typeDataBase="varchar")
	private String signetName;
	@YsField(nameDataBase="SignetType", nameJava="signetType", typeDataBase="tinyint")
	private Integer signetType;
	@YsField(nameDataBase="Explain", nameJava="explain", typeDataBase="varchar")
	private String explain;
	@YsField(nameDataBase="AuditingTime", nameJava="auditingTime", typeDataBase="datetime")
	private Date auditingTime;
	@YsField(nameDataBase="SignetTypeTxt", nameJava="signetTypeTxt", typeDataBase="varchar")
	private String signetTypeTxt;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public AdmUseSignetApply setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public AdmUseSignetApply setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public AdmUseSignetApply setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public AdmUseSignetApply setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Integer getPurpose() {
		return purpose;
	}
	public AdmUseSignetApply setPurpose(Integer purpose) {
		this.purpose = purpose;
		return this;
	}
	public Date getUseTime() {
		return useTime;
	}
	public AdmUseSignetApply setUseTime(Date useTime) {
		this.useTime = useTime;
		return this;
	}
	public Date getBackTime() {
		return backTime;
	}
	public AdmUseSignetApply setBackTime(Date backTime) {
		this.backTime = backTime;
		return this;
	}
	public String getSignetCode() {
		return signetCode;
	}
	public AdmUseSignetApply setSignetCode(String signetCode) {
		this.signetCode = signetCode;
		return this;
	}
	public String getSignetName() {
		return signetName;
	}
	public AdmUseSignetApply setSignetName(String signetName) {
		this.signetName = signetName;
		return this;
	}
	public Integer getSignetType() {
		return signetType;
	}
	public AdmUseSignetApply setSignetType(Integer signetType) {
		this.signetType = signetType;
		return this;
	}
	public String getExplain() {
		return explain;
	}
	public AdmUseSignetApply setExplain(String explain) {
		this.explain = explain;
		return this;
	}
	public Date getAuditingTime() {
		return auditingTime;
	}
	public AdmUseSignetApply setAuditingTime(Date auditingTime) {
		this.auditingTime = auditingTime;
		return this;
	}
	public String getSignetTypeTxt() {
		return signetTypeTxt;
	}
	public AdmUseSignetApply setSignetTypeTxt(String signetTypeTxt) {
		this.signetTypeTxt = signetTypeTxt;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public AdmUseSignetApply setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public AdmUseSignetApply setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public AdmUseSignetApply setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static AdmUseSignetApply admUseSignetApply(
		String bid,
		Long createChangeId,
		Integer effectStock,
		Integer purpose,
		Date useTime,
		Date backTime,
		String signetCode,
		String signetName,
		Integer signetType,
		String explain,
		Date auditingTime,
		String signetTypeTxt,
		Integer status
			) {
		AdmUseSignetApply entity = new AdmUseSignetApply();
		entity.setBid(bid);
		entity.setCreateChangeId(createChangeId);
		entity.setEffectStock(effectStock);
		entity.setPurpose(purpose);
		entity.setUseTime(useTime);
		entity.setBackTime(backTime);
		entity.setSignetCode(signetCode);
		entity.setSignetName(signetName);
		entity.setSignetType(signetType);
		entity.setExplain(explain);
		entity.setAuditingTime(auditingTime);
		entity.setSignetTypeTxt(signetTypeTxt);
		entity.setStatus(status);
		return entity;
	}
}